package com.ruicar.afs.cloud.channel.grade.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("grade_model_element")
@EqualsAndHashCode(callSuper = true)
public class GradeModelElement extends Model<GradeModelElement> {
    @ApiModelProperty(value = "物理主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @ApiModelProperty(value = "评级模型代码，业务主键1")
    private String modelCode;
    @ApiModelProperty(value = "指标编号，业务主键2")
    private String elementNo;
    @ApiModelProperty(value = "指标名称")
    private String elementName;
    @ApiModelProperty(value = "指标要素种类")
    private String elementType;
    @ApiModelProperty(value = "指标要素权重")
    private BigDecimal elementWeight;
    @ApiModelProperty(value = "指标种类(0-数据字典定制，1-数据区间,2-其它)")
    private String elementEditType;
    @ApiModelProperty(value = "数据字典类型")
    private String elementEditSrc;
    @ApiModelProperty(value = "指标下限")
    private BigDecimal elementMin;
    @ApiModelProperty(value = "指标上限")
    private BigDecimal elementMax;
    @ApiModelProperty(value = "指标是否忽略")
    private String elementIgnore;
    @ApiModelProperty(value = "指标描述")
    private String elementDesc;
    @ApiModelProperty(value = "上级指标编号")
    private String upElementNo;
    @ApiModelProperty(value = "序号")
    private Integer seqno;
    @ApiModelProperty(value = "指标使用方式")
    private String elementUse;
    @ApiModelProperty(value = "时间戳")
    private Date timestamps;
    @ApiModelProperty(value = "最后更新操作员号")
    private String lastUpdTlr;
    @ApiModelProperty(value = "上次操作XX")
    private String lastUpdFunc;
    @ApiModelProperty(value = "最后更新时间")
    private Date lastUpdDate;
    @ApiModelProperty(value = "满意值")
    private BigDecimal elementPlan;
    @ApiModelProperty(value = "不允许值")
    private BigDecimal elementStand;
    @ApiModelProperty(value = "数据来源编号 0-大数据，1-手工录入(定性指标)")
    private String dscode;

    //add by jiangxiongfei20200817 begin
    @ApiModelProperty(value = "指标code,对应数据字典")
    private String elementCode;
    //add by jiangxiongfei20200817 end
}